
class Car:
    def __init__(self, c, b, p='无牌'):
        self.color = c  # 颜色
        self.brand = b
        self.plate = p
    # 实例object方法
    def run(self, km):
        print(self.color, '的', self.brand, self.plate, '正在以', km, '公里/小时的速度行使')

store = []   # 车库

store.append(Car('红色', '保时捷'))
print(len(store))  # 1
store.append(Car('黑色', '宝马760'))
print(store)


